package com.charlotte.study.gupao.interpreter.calculate.v1;

/**
 * @author junjie.ding
 * @date 2020/3/24
 */
public class Test {

    public static void main(String[] args) {
        int calculate = new Calculator("10 + 20").calculate();
        System.out.println("10 + 20 = " + calculate);

        int calculate2 = new Calculator("10 * 20 / 2").calculate();
        System.out.println("10 * 20 / 2 = " + calculate2);

        int calculate3 = new Calculator("10 / 20").calculate();
        System.out.println("10 / 20 = " + calculate3);

        int calculate4 = new Calculator("10 + 20 * 2 + 60").calculate();
        System.out.println("10 + 20 * 2 + 60 = " + calculate4);
    }
}
